package com.candy.oop1;

/**
 * @author donglin
 * @Title:
 * @类名: Student
 * @date 2020/7/14
 */
public class Student {
    //属性
    private int stuId;
    private String stuName;
    private boolean stuSex;
    //静态属性
    public static String stuSchool;


    static{

    }

    //构造函数
    public Student() {
    }

    public Student(int stuId) {
        this.stuId = stuId;
    }

    public Student(int stuId, String stuName, boolean stuSex) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuSex = stuSex;
    }

    //getter setter方法
    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public boolean isStuSex() {
        return stuSex;
    }

    public void setStuSex(boolean stuSex) {
        this.stuSex = stuSex;
    }

    //方法
    public void studing(){
        System.out.println("I am  studing.....");
    }

    public void studing(String stuName){
        String stuObject="";
        this.stuName=stuName;
        System.out.println(this.stuName+"is studing.......");

    }
    //  静态方法
    public static void sayHi(){

        System.out.println("你好啊。。。。。。。。。。。");
    }

    public void sayBye(){
        System.out.println("我的学校是"+stuSchool+",下次见");
    }
}
